local Revealer = Class(function(self, inst)
	self.inst = inst

	self.ongameloadfn = {} -- call on every game loaded
	self.onworldgenfn = {} -- call once after worldgen

	inst:DoTaskInTime(0, function()
		self:OnGameLoad()
	end)

	-- GetWorld().minimap.MiniMap:EnableFogOfWar(false)
end)

function Revealer:OnGameLoad()
	for k in pairs(self.ongameloadfn)do
		k(self.inst)
	end
end

function Revealer:AddGameLoadFn(fn)
	self.ongameloadfn[fn] = true
end

function Revealer:RemoveGameLoadFn(fn)
	self.ongameloadfn[fn] = nil 
end


-- function 

return Revealer